Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Micropython 1.24.1 compatibility fixes #2

Open
wants to merge 10 commits into
base: micropython_1.24.1
Choose a base branch
from

Conversation

kdmukai
Copy link
Collaborator

@kdmukai kdmukai commented Jan 13, 2025

Changes for MicroPython v1.24.1

  • m_new_obj_var expects a new input var: var_field. See: b6a9778
  • mp_obj_new_str_from_vstr removed an input var. See: 8a0ee5a
  • STATIC macro changed to just static. See: decf8e6
  • mp_obj_type_t.make_new removed. See: 94beeab
  • mp_obj_new_str_from_vstr now checks for utf-8 decoding; return bytes instead via mp_obj_new_bytes_from_vstr to avoid UnicodeError exceptions.
  • MP_REGISTER_MODULE now only expects 2 args so MODULE_HASHLIB_ENABLED is no longer relevant.

Misc:

  • Update crypto/sha2.c to eliminate warnings about array sizes not matching declarations in crypto/sha.h
  • Enable -O2 compiler performance optimizations.
  • README fix for correct pbkdf2_hmac() input args.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant